﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using BEPUphysics.Entities;

namespace Asplode.Renderer
{
    public class RenderPair
    {

        public Entity Entity { get; set; }
        public Model Model { get; set; }
        public Matrix[] boneTransforms { get; set; }
        public Matrix transform = Matrix.Identity;


        public RenderPair(Entity entity, Model model)
        {
            Entity = entity;
            Model = model;
            boneTransforms = new Matrix[model.Bones.Count];
            foreach (ModelMesh mesh in model.Meshes)
            {
                foreach (BasicEffect effect in mesh.Effects)
                {
                    effect.EnableDefaultLighting();
                }
            }
        }

    }
}
